package com.liuceng.zen.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liuceng.zen.mapper.GdtCreativeMapper;
import com.liuceng.zen.pojo.domain.GdtCreative;

@Service
public class GdtCreativeService extends BaseService<GdtCreative> {
  @Autowired
  GdtCreativeMapper gdtCreativeMapper;

  public List<GdtCreative> findFrontViewCreatives(Integer memberId) {
    Map<String, Object> params = new HashMap<>();
    params.put("memberId", memberId);
    //
    return gdtCreativeMapper.findFrontView(params);
  }

  public List<GdtCreative> findByAid(Map<String, Object> map) {
    return gdtCreativeMapper.findByAid(map);
  }
}
